package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 库存采购单
 * </p>
 *
 * @author 小飞
 * @since 2019-07-08
 */
@TableName("inventory_sales")
public class InventorySales implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 库存id
     */
    @TableField("inventory_order_id")
    private Long inventoryOrderId;

    /**
     * 数量
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 产品单价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 总金额
     */
    @TableField("total_price")
    private BigDecimal totalPrice;

    /**
     * 发货单id
     */
    @TableField("dispatch_order_id")
    private  Long dispatchOrderId;


    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    /**
     * 序列号组
     */
    @TableField("serial_num")
    private  String serialNum;

    public Long getDispatchOrderId() {
        return dispatchOrderId;
    }

    public void setDispatchOrderId(Long dispatchOrderId) {
        this.dispatchOrderId = dispatchOrderId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getInventoryOrderId() {
        return inventoryOrderId;
    }

    public void setInventoryOrderId(Long inventoryOrderId) {
        this.inventoryOrderId = inventoryOrderId;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "InventorySales{" +
        "id=" + id +
        ", inventoryOrderId=" + inventoryOrderId +
        ", amount=" + amount +
        ", price=" + price +
        ", totalPrice=" + totalPrice +
        "}";
    }
}
